﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Budget.Wcf.Core.Dto
{
    [DataContract(IsReference = true)]
    public class CategoryData
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public IList<ProductData> Products { get; set; }

        public CategoryData()
        {
            Products = new List<ProductData>();
        }
    }
}